import { axios_get, axios_post, axios_delete, axios_put } from "./http.js";

export const jwt_send_get = p => axios_post("/login/", p);
export const weibo_url_get = p => axios_get("/weibo_url/", p);
export const send_user_email = p => axios_get("/send_email/", p);
export const user_pwd_reset = p => axios_post("/changepwd/", p);
export const zhoukao_reg = p => axios_post("/register/", p);
export const send_fuwenben = p => axios_post("/goodsadd/", p);
export const select_feilei_one = p => axios_get("/fenleione/", p);
export const select_feilei_two = p => axios_get("/fenleitwo/", p); 
export const select_da_one = p => axios_get("/daone/", p);
export const select_datwo_one = p => axios_get("/datwo/", p);
export const select_goods_detail = p => axios_get("/goodsinfo/", p);
export const login_lalala = p => axios_post("dengview/", p);
export const login_zhanshi = p => axios_post("zhanshi/", p);
export const create_cart = p => axios_post("cart/", p);
export const cart_zhanshi = p => axios_get("zhan_cart/", p);
export const update_cart = p => axios_put("zhan_cart/", p);
export const delete_cart = p => axios_delete("zhan_cart/", p);
export const fenye_zhanshi = p => axios_get("fenye/", p);
export const send_buy_info = p => axios_post("buys/", p);
export const get_buy_info = p => axios_get("buys/", p);
export const create_orders = p => axios_post("orders/", p);
export const get_alpay_url = p => axios_get("alipay/", p);
export const fenye_zhan = p => axios_get("authfenye/", p);
export const  add_books= p => axios_post("addbook/", p);
export const zhan_books = p => axios_get("zhanbook/", p);
export const delet_books = p => axios_delete("zhanbook/", p);